package cn.zmit.kuxi.activity;

import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;
import com.viewpagerindicator.CirclePageIndicator;
import com.xdroid.utils.AppManager;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import cn.zmit.kuxi.R;
import cn.zmit.kuxi.adapter.GuideFragmentAdapter;

/** * @author chenxu @parameter * @return */
public class GuideActivity extends FragmentActivity {
	@ViewInject(R.id.launch_show_viewpager)
	private ViewPager launch_show_viewpager;
	@ViewInject(R.id.indicator)
	private CirclePageIndicator indicator;

	@Override
	protected void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		AppManager.getInstance().addActivity(this);
		setContentView(R.layout.activity_guide);
		ViewUtils.inject(this);
		initView();
	}

	private void initView() {
		launch_show_viewpager.setAdapter(new GuideFragmentAdapter(
				getSupportFragmentManager()));
//		indicator.setPadding(10, 0, 0, 0);
		indicator.setViewPager(launch_show_viewpager);
	}
}
